home *** CD-ROM | disk | FTP | other *** search
/ Scene Explorer 2 / Scene Explorer 2.iso / tools / !archived / a-start.lzx / A-Start / A-StartInstall next >
Text File  |  1996-06-09  |  5KB  |  186 lines

  1. ;******************** A-Start v0.9B install-script *******************
  2.  (set MSG_SPACE "\n\n\nWelcome to A-Start v0.90 (c) Tuomas Artman/vPS.\n\nEnjoy this voidParrot Software product.\nPlease remember that this is only a preview version\nand has therefore only a limited number of functions.\nFull A-Start 1.0 version will be released as soon as possible!\n")
  3.  (set MSG_DESTINATION "Where would you like A-Start to be installed?\n(The installer will create a directory called\nA-Start in the chosen path.)")
  4.  (set MSG_COPYING "Copying A-Start-files to %s.")
  5.  (set @abort-button "Abort installation.")
  6.  (set MSG_THANKS "\n\n\n\nThank you for using a vPS-product!\nPlease support the author!")
  7.  (set MSG_WBS "\n\n\n\nDo you want A-Start to be started\non every boot-up?\n")
  8.  (set MSG_ASS "\n\n\n\nThe installer is going to add the assign 'AStart:'\nto your User-Startup-script.\nNote that A-Start won't work without the assign!")
  9.  (set FSource)
  10.  (set Msg_run "\n\n\n\n\nDo you now want to configure A-Start?\nBe adviced that A-StartPrefs needs MUI!\n")
  11. (set osversion  (/ (getversion) 65536))
  12. (if (>= osversion 39)
  13.     (set guide_reader "MultiView")
  14.     (set guide_reader "AmigaGuide")
  15. )
  16.  
  17. (set installed "")
  18.  
  19.  
  20.  
  21. (set old 0)
  22.  
  23.  
  24. (complete 0)
  25. (message MSG_SPACE)
  26.  
  27. (if (exists "AStart:" (noreq))
  28.  
  29.     (
  30.         (set dest_dir "AStart:")
  31.         (message "\n\n\n\n'AStart'-assign found. A-Start will install\nitself to this location and update all\nold files. Preferences will not be lost.")
  32.         (set old 1)
  33.     )
  34.  
  35.  
  36.     (
  37.         (set dest_dir  (askdir (prompt (MSG_DESTINATION))
  38.                         (help @askdir-help)
  39.                         (default "dh1:")
  40.                         (newpath)
  41.                   )
  42.         )
  43.     (set dest_dir (tackon dest_dir "A-Start"))
  44.     )
  45. )
  46.  
  47.  
  48. (set @default-dest dest_dir)
  49. (complete 20)
  50.  
  51.  
  52.  
  53.  
  54. (copyfiles  (help @copyfiles-help)
  55.                 (source "Bin/A-StartPrefs")
  56.                 (dest "Sys:Prefs")
  57.                 (infos)
  58. )
  59.  
  60.  
  61.  
  62. (complete 40)
  63. (copyfiles (help @copyfiles-help)
  64.               (source "Bin/A-Start")
  65.               (dest @default-dest)
  66.               (infos)
  67. )
  68.  
  69.  
  70.  
  71. (complete 60)
  72. (copyfiles  (help @copyfiles-help)
  73.           (source "Documentation")
  74.           (dest (tackon @default-dest "Documentation"))
  75.           (all)
  76.           (infos)
  77. )
  78.  
  79.  
  80.  
  81. (complete 70)
  82.  
  83. (if  (askbool  (prompt MSG_WBS)
  84.             (default 1)
  85.             (help "If you choose 'YES', the installer will copy A-StartWBS to the 'Sys:WBStartup'-dir. A-StartWBS is a very small program, which launches the A-Start-main-program via the specification of A-Start's path in the ToolTypes of the icon of A-StartWBS.\nConfused? Just press 'Yes'!"
  86.             )
  87.     )
  88.         
  89.     (copyfiles  (help @copyfiles-help)
  90.                     (source "Bin/A-StartWBS")
  91.                     (dest "Sys:WBStartup")
  92.                     (infos)
  93.     )
  94.  
  95.     (
  96.         (copyfiles  (help @copyfiles-help)
  97.                         (source "Bin/A-StartWBS")
  98.                         (dest @default-dest)
  99.                         (infos)
  100.         )
  101.  
  102.         (delete "Sys:WBStartup/A-StartWBS"
  103.                         (help "hoi")
  104.                         (infos)
  105.         )
  106.     )
  107. )
  108.  
  109.  
  110.  
  111. (complete 80)
  112. (copyfiles  (help @copyfiles-help)
  113.                 (source "Documentation.info")
  114.                 (dest @default-dest)
  115. )
  116.  
  117. (copyfiles  (help @copyfiles-help)
  118.                 (source "Data")
  119.                 (dest (tackon @default-dest "Data"))
  120.                 (all)
  121. )
  122.  
  123.  
  124.  
  125.  
  126. (if (exists "/A-Start.info")
  127.      (
  128.         (if (= old 0)
  129.             (copyfiles  (help @copyfiles-help)
  130.                       (source "/A-Start.info")
  131.                       (dest (pathonly @default-dest))
  132.             )
  133.         )
  134.      )
  135. )
  136.  
  137. (if (exists "EnvArc:A-Start.prefs")
  138.           (
  139.             (copyfiles  (help @copyfiles-help)
  140.                       (source "EnvArc:A-Start.prefs")
  141.                       (dest (tackon @default-dest "Data"))
  142.             )
  143.  
  144.             (delete "EnvArc:A-Start.prefs"
  145.                         (help "Cleaning up!")
  146.                         (optional force)
  147.             )
  148.           )
  149. )
  150.  
  151.  
  152.  
  153.  
  154. (complete 100)
  155.  
  156. (if (exists (tackon @default-dest "Documentation/A-Start.guide.info") (noreq))
  157.         (tooltype   (dest (tackon @default-dest "Documentation/A-Start.guide"))
  158.                   (noposition)
  159.                   (setdefaulttool guide_reader)
  160.         )
  161. )
  162.  
  163.  
  164.  
  165. (if (= old 0)
  166.  (
  167.   (makeassign "AStart" @default-dest)
  168.   (startup "A-Start"
  169.             (command "Assign AStart: " @default-dest)
  170.             (prompt MSG_ASS)
  171.             (help "Just click on 'yes',will you?")
  172.   )
  173.  )
  174. )
  175.  
  176. (run      "run Sys:Prefs/A-StartPrefs"
  177.         (confirm)
  178.         (prompt Msg_run)
  179.         (help "You may now start A-StartPrefs to configure your version of the main program. A-StartPrefs does not work, if you do not have MUI 3.1+ installed.")
  180. )
  181.  
  182.  
  183. (message "**IMPORTANT**\nThis is only a preview's preview, a tripple beta and a\nbuggy-bug release of A-Start. It is here to show you\nthat I'm still alive and still programming.\nIt gives you a good look at the new features in A-Start\nalthough it should only be used to check out these\nnew features.\n\nI have had a few personal problems and after I had\nworked them out my new Compiler-System arrived,\nso I've not been doing much the last\nfew weeks. I appologize for that.\n*FANTOZZI LUIGI! write me your address!*")
  184.  
  185. (exit (MSG_THANKS))
  186.